<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
<h1>接受参数注解</h1>
<a href="/monster/100/king">@PathVariable-路径变量 monster/100/king</a><br/><br/>
<a href="/requestHeader">@RequestHeader-获取到http请求头 </a><br/><br/>
<a href="/hi?name=ted&fruit=apple&fruit=pear">@RequestParam-获取请求参数 </a><br/><br/>
<a href="/cookie">@CookieValue-获取Cookie的值 </a><br/><br/>
<a href="/cookie">@CookieValue-获取Cookie的值 </a><br/><br/>
<hr/>
<h1>测试@RequestBody 获取数据: 获取POST请求体</h1>
<form action="/save" method="post">
    姓名:<input name="name"/><br/>
    年龄:<input name="age"/><br/>
    <input type="submit" value="提交">
</form>
<hr/>
<a href="/login">@RequestAttribute-获取request域属性 </a><br/><br/>

</body>
</html>